export default {
  saveToken: (value)=>{
    sessionStorage.setItem('token',JSON.parse(value));
  },
  readToken: ()=>{
    return JSON.parse(sessionStorage.getItem('token'));
  },
  saveUserData: (value)=>{
    localStorage.setItem('userData',JSON.stringify(value));
  },
  readUserData: ()=>{
    return JSON.parse(localStorage.getItem('userData'));
  },
  removeUserData: ()=>{
    localStorage.removeItem('userData');
  }
}
